xen/iommu: smmu: Add Xen specific code to be able to use the driver
authorJulien Grall <julien.grall@linaro.org>
Wed, 25 Feb 2015 18:52:59 +0000 (18:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Mar 2015 13:56:11 +0000 (13:56 +0000)
commit355d4b488e4be70210ea454f50396c1ee399b991
treefb043ccf2d3046468a1e4d77b637253dbaad1b2d
parenta5d65ee331bb5c1a512c3c6936b0f548db84a8fd
xen/iommu: smmu: Add Xen specific code to be able to use the driver

The main goal is to modify as little the Linux code to be able to port
easily new feature added in Linux repo for the driver.

To achieve that we:
    - Add helpers to Linux function not implemented on Xen
    - Add callbacks used by Xen to do our own stuff and call Linux ones
    - Only modify when required the code which comes from Linux. If so a
    comment has been added with /* Xen: ... */ explaining why it's
    necessary.

The support for PCI has been commented because it's not yet supported by
Xen ARM and therefore won't compile.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- fix a couple of typos in comments ]
xen/drivers/passthrough/arm/Makefile
xen/drivers/passthrough/arm/smmu.c